package com.hsav.kcxb.adapter;

import android.content.Context;
import android.view.View;

import java.util.List;

/**
 * Created by zhao
 */

public abstract class BaseAdapterManager<T> {

    protected final List<T> mDataList;
    protected final int mLayoutId;
    protected final Context mContext;

    public BaseAdapterManager(int layoutId, List<T> dataList,Context context){
        this.mLayoutId = layoutId;
        this.mDataList = dataList;
        this.mContext = context;
    }

    public int getLayoutId(){
        return mLayoutId;
    }

    public abstract void initItemView(View itemView);

    public List<T> getDataList(){
        return mDataList;
    }

    public abstract void bindViewData(int position);
}
